package net.asciiworks.filesyncr.model {
    import net.asciiworks.filesyncr.ApplicationFacade;
    
    import flash.events.StorageVolumeChangeEvent;
    import flash.filesystem.StorageVolume;
    import flash.filesystem.StorageVolumeInfo;
    
    import mx.collections.ArrayCollection;
    
    import org.puremvc.as3.interfaces.IProxy;
    import org.puremvc.as3.patterns.proxy.Proxy;

    public class DataProxy extends Proxy implements IProxy {
        public static const NAME:String = "DataProxy";
		
		//----------------------------------
		//  source
		//----------------------------------
		
		private var _source:String = "*";
		
		public function get source():String {
			return _source;
		}
		
		public function set source(value:String):void {
			if (_source != value) {
				_source = value;
				sendNotification(ApplicationFacade.SETTINGS_CHANGED);
			}
		}
		
		//----------------------------------
		//  destinationVolume
		//----------------------------------
		
		private var _destinationVolume:String = "*";
		
		public function get destinationVolume():String {
			return _destinationVolume;
		}
		
		public function set destinationVolume(value:String):void {
			if (_destinationVolume != value) {
				_destinationVolume = value;
				sendNotification(ApplicationFacade.SETTINGS_CHANGED);
			}
		}

		//----------------------------------
		//  destination
		//----------------------------------
		
		private var _destination:String = "*";
		
		public function get destination():String {
			return _destination;
		}
		
		public function set destination(value:String):void {
			if (_destination != value) {
				_destination = value;
				sendNotification(ApplicationFacade.SETTINGS_CHANGED);
			}
		}

        public function DataProxy() {
            super(NAME, data);
        }
    }
}